package cn.com.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import cn.com.BaseActivity;
import cn.com.R;
import cn.com.TabHostMain;
/**
 * 发布实惠
 * @author ChonZY
 */
public class SendShActivity extends BaseActivity implements OnClickListener{
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.sendsh);
		init();
	}

	private void init() {
		initHead();
		tv_centerTop.setText("发布实惠");
		tv_leftTop.setVisibility(View.VISIBLE);
		tv_leftTop.setText(R.string.tv_top_back);
		tv_leftTop.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent intent = null ;
		switch (v.getId()) {
		case R.id.tv_toptitle_tv01_left_title: // back
			intent = new Intent(this,TabHostMain.class);
			intent.putExtra("main_tab_name", "SendShActivity");
			startActivity(intent);
			finish();
			break;

		default:
			break;
		}
	}

}
